package cn.edu.scau.cmi.chenjia.client;

import java.util.ArrayList;
import java.util.List;

import cn.edu.scau.cmi.chenjia.clientFxml.SafeOrganizationUIController;
import cn.edu.scau.cmi.chenjia.composite.safe.SafeOrganization;
import cn.edu.scau.cmi.chenjia.composite.safe.SafePerson;
import cn.edu.scau.cmi.chenjia.composite.safe.SafeTeam;
import javafx.application.Application;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.TreeCell;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeView;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.util.Callback;


public class SafeOrganizationClient extends Application {
	
	@Override
	public void start(Stage primaryStage) {
	
		try {
		FXMLLoader loader=new FXMLLoader();
		loader.setLocation(SafeOrganizationUIController.class.getResource("SafeOrganizationUI.fxml"));
		AnchorPane homeview =  (AnchorPane) loader.load();
		Scene scene=new Scene(homeview);
		primaryStage.setScene(scene);
		primaryStage.setResizable(false);
		primaryStage.setTitle("安全组合模式");
		primaryStage.show();
		}catch(Exception e) {
            e.printStackTrace();
        }
		
	}
	

	public static void main(String[] args) {
		launch(args);
	}
}
